package com.xbongbong.pro.enums.menu.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/1/15 14:34
 * @desrcption 工单中心
 * @since v1.0
 */
@Getter
public enum WorkOrderControlCenterEnum {

    /**
     * 工单中心枚举
     */
    WORK_ORDER_TEMPLATE("enum.workOrderControlCenter.name.work_order_template", "workOrderTemplate", "icon-workOrderTemplate", "/Setting/manager", "workOrderTemplate"),

    WORK_ORDER_SERVICE_STAFF("enum.workOrderControlCenter.name.work_order_service_staff", "workOrderServiceStaff", "icon-organization", "/Setting/serviceStaff", "workOrderPerson");


    private String name;

    private String alias;

    private String icon;

    private String url;

    private String permission;

    WorkOrderControlCenterEnum(String name, String alias, String icon, String url, String permission){
        this.name = name;
        this.alias = alias;
        this.icon = icon;
        this.url = url;
        this.permission = permission;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
